package com.dfbz.bigdata.modules.system.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.dfbz.bigdata.common.utils.R;
import com.dfbz.bigdata.modules.system.doman.UanddExpress;
import com.dfbz.bigdata.modules.system.service.UanddExpressService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/express")
@Slf4j
public class CommonExpressController {

    @Autowired
    private UanddExpressService uanddExpressService;


    @GetMapping("{id}")
    public R<UanddExpress> getExpress(@PathVariable Long id){

        UanddExpress express = uanddExpressService.getById(id);

        return R.success(express);
    }
}
